Skip to main content

All Questions

5votes
2answers
290views

2048 game in Java

I am a beginner learning Java, and I coded a command line version of the game 2048 for practice. Any feedback, especially regarding best practices, object-oriented principles, and tidying up the code ...
smwt's user avatar
  • 187
3votes
1answer
253views

Simple blackjack program in Java

I wrote this blackjack game for my APCSA class (already submitted) and was wondering if anyone had feedback on what parts of it are improperly written. My main concern is the fact that I am printing ...
nohgo's user avatar
3votes
1answer
556views

Calculator (Java/Beginner)

I finished my first calculator using Java! I try to apply Object-Oriented Programming! I'll add my gitHub link if you're suited to viewing code on gitHub. Here is a link to my GitHub Calculator ...
dddleo's user avatar
1vote
1answer
1kviews

Library system in Java with OOP

I am practicing designing OOP projects. And this is my first OOP design. I need some reviews for the code and the design please. Here is what they call UML. The code. ...
Omar_Hafez's user avatar
4votes
1answer
2kviews

Java 2 Player Object Oriented CLI Chess Game

I just finished implementing a Java 2 player CLI chess game, it involves player putting in commands (i.e "move e2 e4" to move or "attack d1 d5" to capture.). I am trying to follow ...
Yoh's user avatar
  • 61
3votes
1answer
263views

Java object oriented code to find points lying in a rectangle

I created this short code as an exercise to learn and practice my OOPS. The aim is - given a string of points as x1,y1,x2,y2... figure out how many of them lie ...
sweet_summer_child's user avatar
1vote
1answer
197views

Console-based number guessing game

I received feedback that my code was convoluted and written with very bad practices. Our tutor said explicitly that I should never write the code like that. I'm just trying to wrap my head around the ...
tanczmy's user avatar
1vote
2answers
110views

Java dependency injection and hiding details of methods in "Database"-class

I recently posted a bunch of code of my to-do list application and after getting some very helpful and good suggestions on how to improve, I took a shot at it! Here's a link to the former post I made -...
Apelli's user avatar
2votes
1answer
2kviews

A to-do list application written with Java

This is the first project I have ever undertaken and now that I've gotten it to a point I feel comfortable with, I would love to get some review and tips for any improvement on it! I am especially ...
Apelli's user avatar
7votes
1answer
2kviews

Blackjack game in Java

So this is a blackjack game, any feedback or tips on what I should remove from the code that is not needed is very appreciated. Note: some of the names of classes or variables are in Swedish but it ...
Golden's user avatar
3votes
1answer
81views

Data-type implementation for multiple dynamic histograms

This is almost exercise 3.2.14. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne (since I am self-studying, I changed it a little bit): Develop a version of ...
Khashayar Baghizadeh's user avatar
1vote
1answer
87views

Simplifying data-type implementation for axis-aligned rectangles using data-type implementation for closed intervals

This is exercise 3.2.8. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne: Write a data type Interval that implements the ...
Khashayar Baghizadeh's user avatar
6votes
3answers
879views

Data-type implementation for rational numbers

This is exercise 3.2.7. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne: Implement a data type for rational numbers that supports addition, subtraction, ...
Khashayar Baghizadeh's user avatar
8votes
1answer
358views

Data-type implementation for axis-aligned rectangles

This is exercise 3.2.1. from the book Computer Science An Interdisciplinary Approach by Sedgewick & Wayne: Consider the following data-type implementation for axis-aligned rectangles, which ...
Khashayar Baghizadeh's user avatar
8votes
1answer
553views

My first game - Arkanoid

I'm new to java and I have just finished my very first game - Arkanoid. I would appreciate, if anyone could look at this and tell me some advice and tips how can I optimize my code. Thank you. :) I ...
itecko's user avatar

153050per page
close